﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public static class NguoiBUS
    {
        public static List<NguoiDTO> LoadAll()
        {
            try
            {
                return NguoiDAO.LoadAll();
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        public static List<NguoiDTO> LoadCurrentOnly()
        {
            return NguoiDAO.LoadCurrentOnly();
        }
        public static List<NguoiDTO> LoadExOnly()
        {
            return NguoiDAO.LoadExOnly();
        }
        public static bool Add(NguoiDTO nguoiDTO)
        {
            return NguoiDAO.Add(nguoiDTO);
        }
        public static bool Update(NguoiDTO nguoiDTO)
        {
            return NguoiDAO.Update(nguoiDTO);
        }
    }
}
